home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-20 / nosmail.zip / BBSFWD.INF < prev    next >
Text File  |  1991-05-12  |  9KB  |  203 lines

  1.                                   BBSFWD.INF
  2.  
  3. From wb0mpq@wb0mpq.ampr.org Sat Nov 17 03:01:55 1990
  4. Received: from wb0mpq.ampr.org by n2mh.ampr.org with SMTP
  5.         id AA2277 ; Sat, 17 Nov 90 02:07:58 GMT
  6. Date: Sat, 17 Nov 90 01:48:43 GMT
  7. Message-Id: <19297@wb0mpq.ampr.org>
  8. From: wb0mpq@wb0mpq.ampr.org (Al Shjarback - Warren,NJ 07060)
  9. To: n2mh@n2mh.ampr.org
  10. Subject: Forwarding 1
  11.  
  12. >From nn2z@nn2z Wed Oct 10 23:09:51 1990
  13. Received: from pc.nn2z.ampr.org by wb0mpq.ampr.org with SMTP
  14.         id AA16293 ; Wed, 10 Oct 90 22:55:43 GMT
  15. Received: from nn2z.ampr.org by pc.nn2z.ampr.org with SMTP
  16.         id AA6110 ; Wed, 10 Oct 90 18:30:16 EDT
  17. Received: by nn2z.ampr.org (5.59/smail2.5/08-26-89)
  18.         id AA17857; Wed, 10 Oct 90 18:42:39 EDT
  19. Received: from ucsd.edu by thumper.bellcore.com (4.1/4.7)
  20.         id AA10039; Wed, 10 Oct 90 18:44:55 EDT
  21. Received: by ucsd.edu; id AA11758
  22.         sendmail 5.64/UCSD-2.1-sun
  23.         Wed, 10 Oct 90 13:55:35 -0700 for hpbbrd!db0sao!dg4scv-2!tcp-group
  24. Received: from sics.se by ucsd.edu; id AA11743
  25.         sendmail 5.64/UCSD-2.1-sun via SMTP
  26.         Wed, 10 Oct 90 13:55:27 -0700 for /usr/lib/sendmail -oc -odb 
  27. -oQ/var/spool/lqueue -oi -ftcp-group-relay tcp-group-list
  28. Received: from isis.sics.se by sics.se (5.61-bind 1.5+ida/SiteCap-3.0)
  29.         id AA21441; Wed, 10 Oct 90 21:55:11 +0100
  30. Received: from localhost by isis.sics.se (5.61-bind 1.5+ida/SiteCap-3.0)
  31.         id AA07844; Wed, 10 Oct 90 21:55:05 +0100
  32. Message-Id: <9010102055.AA07844@isis.sics.se>
  33. To: tcp-group@ucsd.edu
  34. Cc: phealy@cs.tcd.ie
  35. Subject: NOS Mbox forwarding
  36. Date: Wed, 10 Oct 90 21:55:00 +0100
  37. From: klemets@sics.se
  38.  
  39. I have been hacking on the NOS mailbox recently. Paul Healy, EI9GL, wrote some
  40. good forwarding code for NOS. I started changing Pauls code, and I am not sure
  41. if he will recognize it now.
  42.  
  43. The NOS mailbox now supports forwarding, both outgoing forwarding and reverse
  44. forwarding. It keeps track of which bulletins have been forwarded by adding
  45. "X-Forwarded-To:" lines to the messages. Messages in public "areas" are sent
  46. as bulletins, with BID and everything. Messages from private areas are treated
  47. as private mail and are deleted after forwarding.
  48.  
  49. The message areas can be checked for messages to forward at a regular
  50. intervals, which is set with the "mbox timer" command. Forwarding can be
  51. started immediately with the "mbox kick" command. There is also a "mbox motd"
  52. and a "mbox attended" command, which I picked from the G1EMM code.
  53.  
  54. There is a new command in the mailbox too, "Verbose." It displays a message
  55. with all it header lines, contrary to "Read" which only shows four lines. It
  56. is also possible to read a message simply by typing its number.
  57.  
  58. The mailbox reads a forwarding file, "spool/forward.bbs". Here is a sample
  59. file:
  60.  
  61. sk0tm 0006
  62. ax25 ax0 sk0tm
  63. sk0tm
  64. amsat
  65. all
  66. ------
  67. sm0rgv
  68. netrom #sth675
  69. ..c sm0rgv-2
  70. sm0rgv
  71. amsat
  72.  
  73. The first word on the first line in a forwarding record is the name of the BBS
  74. to forward to. This should be the same type of name which is shown by the
  75. "mbox status" command. The second word is optional. It specifies a range when
  76. forwarding may take place. "0006" means that there will only be forwarding to
  77. this station between midnight and 6am.
  78.  
  79. The second line specifies how to establish the connection. It should start
  80. with the protocol (ax25, tcp or netrom) and be followed by all the parameters
  81. which are necessary when NOS has to establish a network connection.
  82.  
  83. Directly after the second line there may be lines that start with a dot. What
  84. follows after the dot will be sent to the remote BBS as soon as the connection
  85. is established.
  86.  
  87. Then follows the names of a number of message areas, public or private.
  88. Finally, there should be a couple of '-' signs to separate one forwarding
  89. record from another.
  90.  
  91. The code seems to be working, although there could of course be bugs left.
  92. Anyway, the source is available with ftp from sics.se. The filename is
  93. archive/packet/ka9q/nos/mailbox.arc.
  94.  
  95. As usual, this message is the only documentation, so it could be worth saving.
  96.  
  97. Anders
  98.  
  99. From wb0mpq@wb0mpq.ampr.org Sat Nov 17 04:15:14 1990
  100. Received: from wb0mpq.ampr.org by n2mh.ampr.org with SMTP
  101.         id AA2278 ; Sat, 17 Nov 90 03:16:45 GMT
  102. Date: Sat, 17 Nov 90 01:49:06 GMT
  103. Message-Id: <19299@wb0mpq.ampr.org>
  104. From: wb0mpq@wb0mpq.ampr.org (Al Shjarback - Warren,NJ 07060)
  105. To: n2mh@n2mh.ampr.org
  106. Subject: Forwarding 2
  107.  
  108. >From nn2z@nn2z Mon Oct 15 15:08:12 1990
  109. Received: from pc.nn2z.ampr.org by wb0mpq.ampr.org with SMTP
  110.         id AA16697 ; Mon, 15 Oct 90 14:57:51 GMT
  111. Received: from nn2z.ampr.org by pc.nn2z.ampr.org with SMTP
  112.         id AA6493 ; Mon, 15 Oct 90 10:24:34 EDT
  113. Received: by nn2z.ampr.org (5.59/smail2.5/08-26-89)
  114.         id AA01219; Mon, 15 Oct 90 10:35:34 EDT
  115. Received: from ucsd.edu by thumper.bellcore.com (4.1/4.7)
  116.         id AA01720; Mon, 15 Oct 90 10:31:56 EDT
  117. Received: by ucsd.edu; id AA00355
  118.         sendmail 5.64/UCSD-2.1-sun
  119.         Mon, 15 Oct 90 04:29:50 -0700 for hb9zz
  120. Received: from sics.se by ucsd.edu; id AA00339
  121.         sendmail 5.64/UCSD-2.1-sun via SMTP
  122.         Mon, 15 Oct 90 04:29:38 -0700 for /usr/lib/sendmail -oc -odb 
  123. -oQ/var/spool/lqueue -oi -ftcp-group-relay tcp-group-list
  124. Received: from sarapis.sics.se by sics.se (5.61-bind 1.5+ida/SiteCap-3.0)
  125.         id AA09221; Mon, 15 Oct 90 12:29:26 +0100
  126. Received: from localhost by sarapis.sics.se (5.61-bind 1.4+ida/SiteCap-3.0)
  127.         id AA06837; Mon, 15 Oct 90 11:56:45 +0100
  128. Message-Id: <9010151056.AA06837@sarapis.sics.se>
  129. To: "JAMES C MANKIN (814)-863-4348" <N5X@psuvm.psu.edu>
  130. Cc: tcp-group@ucsd.edu
  131. Subject: Re: NOS Mbox forwarding 
  132. In-Reply-To: Your message of Sun, 14 Oct 90 15:36:00 -0400.
  133.              <9010141936.AA05617@sics.se> 
  134. Date: Mon, 15 Oct 90 11:56:41 +0100
  135. From: klemets@sics.se
  136.  
  137. James,
  138.  
  139. (I am Cc:ing this to tcp-group.)
  140.  
  141. >   Thanks, changing that line solved the problem.  Another thing I notice now
  142. > is that the nos mailbox doesnt disconnect cleanly after forwarding, it seems
  143. > to do a reset because the connection disappears from the ax status display
  144. > without an ax25 disconnect packet being sent.
  145.  
  146. This is really odd, has anybody else noticed this?
  147.  
  148. >  Is there a way to send a message that is for a user at a bbs, rather than
  149. > the bbs's owner?  I can do it if I edit the .txt file in the mail directory
  150. > to have the To: address I want, so my problem is how does one get a message
  151. > for kb3kj @ w3ya  to be placed in the w3ya  mail area.  There must be
  152. > something I am overlooking.
  153.  
  154. When a message is entered to the mailbox, the address is rewritten according
  155. to rules in the /spool/rewrite file. The first word on each line in the
  156. rewrite file is an address using wildcards. If that address matches the
  157. address you are trying to rewrite, it is rewritten according to the format of
  158. the second word. If the third word is an 'r', the rewrite procedure will be
  159. repeated, now using the new address as input.
  160.  
  161. Ok, so here is a sample /spool/rewrite file for a machine with the hostname
  162. sk0we.ampr.org:
  163.  
  164. *!* $2@$1 r
  165. *@sk0we.ampr.org $1 r
  166. *@*.ampr.org $1@$2.ampr.org
  167. sm0rgv@* sm0rgv
  168. *@w3ya* w3ya
  169. *@k* $1%k$2%w3iwi.ampr.org@tomcat.gsfc.nasa.gov
  170.  
  171. The first line means that addresses written in the "host!user" format should
  172. be rewritten to "user@host" and then the rewrite procedure should be repeated.
  173.  
  174. The second line converts the address "user@sk0we.ampr.org" into the local
  175. address "user" and then repeats the rewrite procedure.
  176.  
  177. The third line seems to do nothing. It just converts "user@host.ampr.org" to
  178. "user@host.ampr.org". But it also exits the rewrite procedure since the line
  179. does not end with an 'r'. Any address ending with ".ampr.org" will not be
  180. converted further.
  181.  
  182. The line "sm0rgv@* sm0rgv" will keep mail for sm0rgv on the local machine even
  183. if it is mistakenly addressed to another BBS, such as "sm0rgv@w3iwi". The line
  184. will however fail to convert addresses such as "sm0rgv@w3iwi.ampr.org" because
  185. of the line described in the previous paragraph.
  186.  
  187. The line "*@w3ya* w3ya" will leave mail for "user@w3ya" in the local message
  188. area named "w3ya". The same goes for mail using some sort of hierarchical
  189. routing designators such as "user@w3ya.state.na.us". The only exception is for
  190. mail addressed to "user@w3ya.ampr.org" as described above.
  191.  
  192. The line "*@k* $1%k$2%w3iwi.ampr.org@tomcat.gsfc.nasa.gov" is an example of
  193. how to establish an Internet "wormhole." Suppose I want to forward all mail to
  194. stations with callsigns starting with K to W3IWI through the Internet. The
  195. line quoted above would do it. But if the mail for "user@kxxxx" is received by
  196. w3iwi.ampr.org with SMTP, there might be some problems because the rewrite
  197. file is not scanned when mail is received with SMTP. This could easily be
  198. changed however. Let me know if this is causing you any inconveniencies.
  199.  
  200. Anders
  201.  
  202.  
  203.